package com.neibulei;

public class Outer {
    /*
     private int num = 10;
    //    public class Inner{
    //        public void show(){
    //            System.out.println(num);
    //        }
    //    }
        private class Inner{
            public void show(){
                System.out.println(num);
            }
        }



        public void method(){
            Inner i = new Inner();
            i.show();
        }
    */
    private int num = 20;

    public void method() {
        int num2 = 20;
        class Inner {
            public void show() {
                System.out.println(num);
                System.out.println(num2);
            }
        }

        Inner i = new Inner();
        i.show();
    }

}
